﻿#region Namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using eSilky.BLL;
#endregion

namespace eSilky
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.Product pdt;
            DataSet dsPdts;
            try
            {
                int catid =Convert.ToInt32( Request.QueryString["catid"].ToString());
                pdt = new BLL.Product();
                dsPdts = new DataSet();
                dsPdts = pdt.GetAllProduct(catid);
                dtlstProducts.DataSource = dsPdts;
                dtlstProducts.DataBind();
            }
            catch (Exception)
            {

                throw;
            }
        }       
    }
}
